/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-11-24 22:18:20  
 * Copyright (c) 2015- joysuch-版权所有     
 */

package com.joysuch.wwyt.risk.service;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.risk.bean.RiskJhaEvaluationBean;
import com.joysuch.wwyt.risk.entity.RiskPoint;
import com.joysuch.wwyt.risk.entity.RiskPointEvaluationJha;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface RiskPointEvaluationJhaService {

    public void add(RiskPointEvaluationJha entity) throws Exception;

    void update(RiskPointEvaluationJha entity) throws Exception;

    Page<RiskPointEvaluationJha> findByPage(Pageable page);

    void delete(Long id);

    RiskPointEvaluationJha findById(Long id);

    /**
     * 执行JHA评估
     * 
     * @param point
     *            风险点
     * @param bean
     *            风险数据
     * @return
     */
    public RiskPointEvaluationJha doEvaluation(RiskPoint point, RiskJhaEvaluationBean bean);

    ResultBean getById(Long id);
}
